//
//  MDHUserRegModel.swift
//  JSTech
//
//  Created by 高得华 on 2019/5/14.
//  Copyright © 2020 华&梅. All rights reserved.
//

import UIKit

/* - === 验证码登录的信息
 {
 "code":2000,
 "data":{
 "token":"bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpLnlvb3Rhb2tlLmNvbVwvYXBpXC92MVwvbG9naW5fY29kZSIsImlhdCI6MTU2MjU3OTE5NCwiZXhwIjoxNTYyNTgyNzk0LCJuYmYiOjE1NjI1NzkxOTQsImp0aSI6Imw4QU8xQnpjZTZXVEpJMmsiLCJzdWIiOjYsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.NRAQ7wN5E7ka3VH891svQ5PoAaiy2412RSdvBS9m6tY",
 "expires_in":3600,
 "user_info":{
 "account":7481578,
 "nickname":null,
 "name":"13678890524",
 "avatar":null
 }
 },
 "meta":{
 "total":0,
 "perPage":8,
 "currentPage":0
 },
 "msg":"操作成功"
 }
 */

open class MDHUserRegModel: MDHPTModel {
    ///token
    @objc public var token = ""
    ///expires_in
    @objc public var expires_in: String = ""
    ///返回数据 user_info
    @objc public var user_info = MDHUserModel()
}

///用户信息 在写swift的KVO的过程中，被监听的属性必须用“dynamic”修饰，否则监听的代理方法不走。
open class MDHUserModel: MDHPTModel {
    @objc public override init() {
        super.init()
    }
    
    ///用户ID~! ->Bixu 1
    @objc public dynamic var user_id = 0
    ///昵称~! ->Bixu !
    @objc public dynamic var nickname = ""
    ///用户头像
    @objc public dynamic var head_pic = ""
    ///云通信 - 显示的用户ID~! ->Bixu 1
    @objc public dynamic var perfect_number = ""
    ///level_img财富等级
    @objc public var level_img = ""
    ///age 年龄
    @objc public var age = ""
    ///性别 1：男 2：女  3、0：保密
    @objc public dynamic var sex = 0
    ///admin_type 管理员1-是管理员0-不是
    @objc public var admin_type = 0
    ///官方URL 官方图标地址 official_icon
    @objc public var official_icon = ""
    
    ///is_agent是否使用 代理    
    @objc public var is_agent = false
    ///token
    @objc public var token = ""
}


